<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2024/10/15
  Time: 20:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--<%@page language="java" contentType="text/html; ISO-8859-1";charset=UTF-8" pageEncoding="UTF-8" %>--%>
    <%@page import="java.text.SimpleDateFormat" %>
<%@page import="java.util.Date" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>date页面</title>
</head>
<body>
<%
    String name = request.getParameter("username");
    out.println("欢迎您："+name+"今天的日期是：");
    Date date = new Date();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日");

    String string = sdf.format(date);
    out.println(string);
%>
</body>
</html>
